package 抽象案例;

public class test {
    public static void main(String[] args) {
        goldCard a=new goldCard();
        a.setMoney(100);
        a.pay(50);
        System.out.println(a.getMoney());//60   100-50*0.8
    }
}
